﻿using System;

namespace Hicap.QRCodeWarehouse.Core.Models.Transfer
{
    public class ActionResult
    {
        public ActionResult(string actionMethodName, bool isSuccessed, long elapsedMilliseconds, DateTime completedTime, object data, Exception e = null)
        {
            ActionMethodName = actionMethodName;
            IsSuccessed = isSuccessed;
            ElapsedMilliseconds = elapsedMilliseconds;
            CompletedTime = completedTime;
            InputData = data;
            Exception = e;
        }

        public object InputData { get; set; }
        public string ActionMethodName { get; set; }
        public bool IsSuccessed { get; set; }
        public long ElapsedMilliseconds { get; set; }
        public DateTime CompletedTime { get; set; }

        public Exception Exception { get; set; }
    }
}